package org.comiee.airwalker.item;

import net.minecraft.core.registries.Registries;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.RegistryObject;
import org.comiee.airwalker.AirWalker;

import static org.comiee.airwalker.item.ModItems.AIR_GLASS_ITEM;

public class ModTabs {
    public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS =
            DeferredRegister.create(Registries.CREATIVE_MODE_TAB, AirWalker.MODID);

    public static final RegistryObject<CreativeModeTab> AIR_WALKER_TAB =
            CREATIVE_MODE_TABS.register("air_walker_tab", () ->
                    CreativeModeTab.builder().withTabsBefore(CreativeModeTabs.COMBAT).icon(() ->
                            AIR_GLASS_ITEM.get().getDefaultInstance()
                    ).displayItems((parameters, output) ->
                            output.accept(AIR_GLASS_ITEM.get())
                    ).build()
            );
}
